package com.sugou.dao.support.bean;

import com.sugou.dao.enums.ResultType;
import com.sugou.dao.support.ResultInfo;

public class ErrorResInfo extends Number implements ResultInfo{
	private static final long serialVersionUID = 8542334299444650424L;
	
	private String message;
	
	private int code;
	
	public ErrorResInfo(int code,String msg) {
		this.message=msg;
		this.code=code;
	}

	public boolean success() {
		return false;
	}
	
	public ResultType getType() {
		return ResultType.ERROR;
	}

	public String getMessage() {
		return message;
	}

	public int getCode() {
		return code;
	}

	public int intValue() {
		return this.code;
	}

	public long longValue() {
		return this.code;
	}
	
	public float floatValue() {
		return this.code;
	}

	public double doubleValue() {
		return this.code;
	}
	
}
